<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta name="author" content="ZhangHua">
		<title>转帐明细</title>
		<script language="javascript" src="../script/common.js" type="text/javascript"></script>
		<script language="javascript" type="text/javascript" src="../script/print.js"></script>
		<script language="javascript" type="text/javascript">
			var Page;
			function initPageElements(){
				Page.positive = false;
				Page.sql="distribute_list";
				Page.selection.accountType = {list:Clear.AccountType.transfer()};
				ListPage.allowNullTradeType(TX.SUBTYPE.TRANSFER);
			}
			function getBill(){
				if(Page.showTrade.tradeType == Constants.TRADE_TYPE_TRANSFER_IN 
						|| Page.showTrade.tradeType == Constants.TRADE_TYPE_TRANSFER_OUT){
					Eui.getBillHtml('content',{queryName:'transfer_bill',tradeId:Page.showTrade.id})
				}else{
					Eui.getBillHtml('content',{queryName:'transfer_list',
						uniqueId:Page.showTrade.cardUserUnique,batchNo:Page.showTrade.batchNo})
				} 
				WebPrint.print('content');
			}
			
		</script>
	</head>
	<body onload="TX.List.init()">
		<div class="nav"><div id="nav">&nbsp;</div></div>
		<div id="listView">
			<div class="searchForm">
				<form id="searchForm" name="searchForm">
					<input type="hidden" name="orgID">
					<table cellSpacing=0 cellPadding=4 width="100%" border=0 class="col3">
							<tr>
								<td class="label5"><label>客户编号</label> <input type="text" name="uniqueId" onblur="checkV(this,'uniqueId',false)"></td>
								<td class="label5"><label>卡&nbsp;&nbsp;&nbsp;&nbsp;号</label> <input type="text" name="cardNumber" onblur="checkV(this,'asn',false)"></td>
								<td class="label5"><label>交易类型</label> <select name="tradeType"></select></td>
								<td></td>
							</tr>
							<tr>
								<td class="label5" id="minAmountTd"></td>
								<td class="label5" id="maxAmountTd"></td>
								<td class="label5">
									<label>帐户类型</label>
									<select name="accountType" onchange="ListPage.changeAccountCode(this)"><option></select>
								</td>
								<td></td>
							</tr>
							<tr>
								<td class="label5" id="beginDateTd">&nbsp;</td>
								<td class="label5" id="endDateTd">&nbsp;</td>
								<td class="label5"><label>操作员编号</label> <input type="text" name="opID" onblur="checkV(this,'operator',false)"></td>
								<td><button onclick="ListPage.showListTable()">查 询</button></td>
							</tr>
					</table>
				</form>
			</div>
			<div id="datalist"></div>
		</div>
		<div id="detailView" style="display:none;">
			<div class="form">
				<div class="formTitle">转帐交易明细</div>
				<div id="mainTrade"></div>
			</div>
			<div class="form" id="subTradesDiv" style="display:none;">
				<div class="formTitle">
					<span id="subTradesTitle"></span>
				</div>
				<div id="subTradesList"></div>
			</div>
			<p>
				<button onclick="getBill()">打印</button>
				<button onclick="switchPage('listView')">返 回</button>
			</p>
		</div>
		<div id="content"  align='center' style='display:none'></div>
	</body>
</html>